import request from '/@/utils/request';
const modulePath = '/workbench';

// 获取分页列表数据
export function fetchList(query?: any) {
	return request({
		url: `${modulePath}/eventOrder/todoListMobile`,
		method: 'POST',
		data: query,
	});
}

// 获取统计
export function getCount(query?: Object) {
	return request({
		url: `${modulePath}/eventOrder/getWorkOrderCount`,
		method: 'GET',
		data: query,
	});
}

// 详情
export function getDetail(query?: Object) {
	return request({
		url: `${modulePath}/eventOrder/${query}`,
		method: 'GET',
	});
}

// 获取处理表单
export function getHandleForm(query?: Object) {
	return request({
		url: `${modulePath}/mattercenter/handleDetail`,
		method: 'POST',
		data: query,
	});
}

// 获取流程
export function getHandleFlow(query?: Object) {
	return request({
		url: `${modulePath}/mattercenter/flow`,
		method: 'POST',
		data: query,
	});
}

// 办理
export function handleEvent(query?: Object) {
	return request({
		url: `${modulePath}/mattercenter/handle`,
		method: 'POST',
		data: query,
	});
}
